//
//  BBScreenSelectionView.h
//  BBTUIOTest
//
//  Created by ben smith on 8/20/08.
//  This file is part of BBTUIOTest.
//
//  BBTUIOTest is free software: you can redistribute it and/or modify
//  it under the terms of the GNU Lesser General Public License as published by
//  the Free Software Foundation, either version 3 of the License, or
//  (at your option) any later version.

//  BBTUIOTest is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU Lesser General Public License for more details.

//  You should have received a copy of the GNU Lesser General Public License
//  along with BBTUIOTest.  If not, see <http://www.gnu.org/licenses/>.
// 
//  Copyright 2008 Ben Britten Smith ben@benbritten.com .
//
//


#import <Cocoa/Cocoa.h>

// this displayes a scale model of the screens on your system, and lets you pick one

@interface BBScreenSelectionView : NSView {
	NSScreen * chosenScreen;
	NSAffineTransform * scaleTransform;
	NSAffineTransform * moveTransform;
}

@property (retain) NSScreen* chosenScreen;
@property (retain) NSAffineTransform * scaleTransform;
@property (retain) NSAffineTransform * moveTransform;

+ (NSScreen*)screenWithNumber:(NSNumber*)deviceID;
- (NSRect)transformRect:(NSRect)r withTransform:(NSAffineTransform*)xform;
- (id)initWithFrame:(NSRect)frame ;
- (void)awakeFromNib;
- (void)calculate;
- (void)drawRect:(NSRect)rect ;
- (void)mouseDown:(NSEvent*)theEvent;
- (void)setChosenScreen:(NSScreen*)aScreen;

// 8 methods


@end
